package com.license.server.entity;

import lombok.Data;
import java.util.List;

/**
 * 自定义需要校验的 License 参数
 */
@Data
public class LicenseCheckModel {

    /**
     * 可被允许的IP地址
     */
    private Boolean checkIp = true;
    private List<String> ipAddress;

    /**
     * 可被允许的 MAC 地址
     */
    private Boolean checkMac = true;
    private List<String> macAddress;

    /**
     * 可被允许的 CPU 序列号
     */
    private Boolean checkCpu = true;
    private String cpuSerial;

    /**
     * 可被允许的主板序列号
     */
    private Boolean checkMainBoard = true;
    private String mainBoardSerial;


    @Override
    public String toString() {
        return "LicenseCheckModel{" +
                "ipAddress=" + ipAddress +
                ", macAddress=" + macAddress +
                ", cpuSerial='" + cpuSerial + '\'' +
                ", mainBoardSerial='" + mainBoardSerial + '\'' +
                '}';
    }
}
